<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page errorPage="true" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Error</title>
</head>
<body>
<!--  marcamos que es una página de errores -->
<%@ page isErrorPage="true" import="java.io.*"%>

<div id="main-error" class="clearfix">

    <div class="clearfix">
        <div class="col1">
    
            <img src="imagenes/error_imagen.PNG"
                style="max-width: 400px; max-height: 400px">
        </div>
        <div class="col2">
    
            <div id="error_page">
            <h1 STYLE="text-align: center"><B><FONT SIZE=7>ERROR ANOMALO</FONT></B></h1>
                </br></br>    
                <h2 STYLE="text-align: center"><B><FONT SIZE=5>Contacte con su administrador</FONT></B></h2>    
                </br>
                <p STYLE="text-align: center">
                    <form id="volverInicio" name="volverInicio" action="index.jsp"  method="post">
                        <input type="submit" id="volver" value="Volver Al Inicio" />
                    </form>    
                </p>                
            </div>
        </div>
   </div>    
    
    
    <div class="clearfix">
                
                    <p>Exception Message:</p>
                    <p><%=exception.getMessage()%></p>

                    <p>StackTrace:</p>
                    <p>
                        <%
                                StringWriter stringWriter = new StringWriter();
                                PrintWriter printWriter = new PrintWriter(stringWriter);
                                exception.printStackTrace(printWriter);
                                out.println(stringWriter);
                                printWriter.close();
                                stringWriter.close();
                            %>
                    </p>
                



    </div>

</div>
</body>
</html>